package com.wisdytech.linkdcs.partLife.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 关键备件
 * </p>
 *
 * @author chenbin
 * @since 2018-06-05
 */
@TableName("TT_EQ_KEY_PART")
public class KeyPart extends Model<KeyPart> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 备件信息表ID
     */
    @TableField("PART_ID")
    private String partId;
    /**
     * 关键备件状态
     */
    @TableField("STATUS")
    private Double status;
    /**
     * 序列号
     */
    @TableField("O_SERIAL_NUM")
    private String oSerialNum;
    /**
     * 剩余使用寿命
     */
    @TableField("STANDARD_LIFE")
    private Double standardLife;
    /**
     * 更换次数
     */
    @TableField("REPLACE_NUM")
    private Integer replaceNum;
    /**
     *删除标志
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;
    /**
     * 修改时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * 备件编号
     */
    @TableField(exist=false)
    private String partCode;
    /**
     * 备件名称
     */
    @TableField(exist=false)
    private String partName;
    /**
     * 备件单位
     */
    @TableField(exist=false)
    private String lifeUnit;

    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId;
    }

    public Double getStatus() {
        return status;
    }

    public void setStatus(Double status) {
        this.status = status;
    }

    public String getoSerialNum() {
        return oSerialNum;
    }

    public void setoSerialNum(String oSerialNum) {
        this.oSerialNum = oSerialNum;
    }

    public Double getStandardLife() {
        return standardLife;
    }

    public void setStandardLife(Double standardLife) {
        this.standardLife = standardLife;
    }

    public Integer getReplaceNum() {
		return replaceNum;
	}

	public void setReplaceNum(Integer replaceNum) {
		this.replaceNum = replaceNum;
	}

	public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

	public String getPartCode() {
		return partCode;
	}

	public void setPartCode(String partCode) {
		this.partCode = partCode;
	}

	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public String getLifeUnit() {
		return lifeUnit;
	}

	public void setLifeUnit(String lifeUnit) {
		this.lifeUnit = lifeUnit;
	}

    
}
